<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: Timer/Counter (TCPWM)</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__tcpwm__counter.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#groups">API Reference</a>  </div>
  <div class="headertitle">
<div class="title">Timer/Counter (TCPWM)<div class="ingroups"><a class="el" href="group__group__tcpwm.html">TCPWM        (Timer Counter PWM)</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<p>Driver API for Timer/Counter. </p>
<p>The functions and other declarations used in this part of the driver are in cy_tcpwm_counter.h. You can also include cy_pdl.h to get access to all functions and declarations in the PDL.</p>
<p>Use Timer/Counter mode whenever a specific timing interval or measurement is needed. Examples include:</p><ul>
<li>Creating a periodic interrupt for running other system tasks</li>
<li>Measuring frequency of an input signal</li>
<li>Measuring pulse width of an input signal</li>
<li>Measuring time between two external events</li>
<li>Counting events</li>
<li>Triggering other system resources after x number events</li>
<li>Capturing time stamps when events occur</li>
</ul>
<p>The Timer/Counter has the following features:</p><ul>
<li>16- or 32-bit Timer/Counter.</li>
<li>Programmable Period Register.</li>
<li>Programmable Compare Register. Compare value can be swapped with a buffered compare value on comparison event.</li>
<li>Capture with buffer register.</li>
<li>Count Up, Count Down, or Count Up and Down Counting modes.</li>
<li>Continuous or One Shot Run modes.</li>
<li>Interrupt on Terminal Count and Compare or Capture 0. Interrupt on Compare or Capture 1 is only available in TCPWM Version 2.</li>
<li>Start, Reload, Stop, Capture, and Count Inputs.</li>
<li>2 compare (CC0/CC1) registers with double buffer, Capture 1 event. Second compare register and Capture 1 event are available only in TCPWM Version 2.</li>
<li>Two programmable trigger outputs, trig_out0 and trig_out1 that generate a trigger on one of the following events Overflow, Underflow, Terminal Count, and Compare Match 0/1. The available triggers are dependent on the Timer/Counter mode. All these features are only available in TCPWM Version 2.</li>
<li>Overflow, Underflow, and Compare(cc_match) trigger outputs are only available in TCPWM Version 1.</li>
<li>Second Compare Match (CC_MATCH1) event is only available in TCPWM Version 2.</li>
</ul>
<h1><a class="anchor" id="group_tcpwm_counter_configuration"></a>
Configuration Considerations</h1>
<p>The Counter configuration can be divided to number of sequential steps listed below:</p><ul>
<li><a class="el" href="group__group__tcpwm__counter.html#group_tcpwm_counter_config">Configure Counter</a></li>
<li><a class="el" href="group__group__tcpwm__counter.html#group_tcpwm_counter_clock">Assign Clock Divider</a></li>
<li><a class="el" href="group__group__tcpwm__counter.html#group_tcpwm_counter_enable">Enable Counter</a></li>
<li><a class="el" href="group__group__tcpwm__counter.html#group_tcpwm_counter_start">Start Counter</a></li>
</ul>
<h2><a class="anchor" id="group_tcpwm_counter_config"></a>
Configure Counter</h2>
<p>To configure Counter, provide the configuration parameters in the <a class="el" href="structcy__stc__tcpwm__counter__config__t.html">cy_stc_tcpwm_counter_config_t</a> structure. The Configuration structure can be modified through software, but if the configurator in ModusToolbox is used then the configuration structure will be updated with the users input. To initialize the driver, call <a class="el" href="group__group__tcpwm__functions__counter.html#ga6068a06ddc8a07c67bb6df86e920944c">Cy_TCPWM_Counter_Init</a> function providing a pointer to the populated <a class="el" href="structcy__stc__tcpwm__counter__config__t.html">cy_stc_tcpwm_counter_config_t</a> structure.</p>
<p>For TCPWM V1 Configuration </p><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is need to initialize</span></div><div class="line"><span class="comment">     * the first (index = 0) counter of the TCPWM0 block</span></div><div class="line"><span class="comment">     * with the below configuration settings</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    <a class="code" href="structcy__stc__tcpwm__counter__config__t.html">cy_stc_tcpwm_counter_config_t</a> tcpwm_v1_counter_config =</div><div class="line">    {</div><div class="line">        <span class="comment">/* .period            = */</span> 99UL, <span class="comment">/* Period of 100 (0-99). Terminal count event when rolls over back to 0. */</span></div><div class="line">        <span class="comment">/* .clockPrescaler    = */</span> <a class="code" href="group__group__tcpwm__counter__clk__prescalers.html#gaefb266045aef34c35384ee6bfe2d5086">CY_TCPWM_COUNTER_PRESCALER_DIVBY_4</a>, <span class="comment">/* Clk_counter = Clk_input / 4 */</span></div><div class="line">        <span class="comment">/* .runMode           = */</span> <a class="code" href="group__group__tcpwm__counter__run__modes.html#ga020c9a67afbd59f6cda9c1469d5270ac">CY_TCPWM_COUNTER_CONTINUOUS</a>, <span class="comment">/* Wrap around at terminal count. */</span></div><div class="line">        <span class="comment">/* .countDirection    = */</span> <a class="code" href="group__group__tcpwm__counter__direction.html#gaad2097cab499746412a80da26d978d3f">CY_TCPWM_COUNTER_COUNT_UP</a>, <span class="comment">/* Up counter, counting from 0 to period value. */</span></div><div class="line">        <span class="comment">/* .compareOrCapture  = */</span> <a class="code" href="group__group__tcpwm__counter__compare__capture.html#gacd6cf6c894bf1bc1550270916166d21c">CY_TCPWM_COUNTER_MODE_COMPARE</a>, <span class="comment">/* Trigger interrupt/event signal when Counter value is equal to Compare 0 */</span></div><div class="line">        <span class="comment">/* .compare0          = */</span> 33UL,</div><div class="line">        <span class="comment">/* .compare1          = */</span> 66UL,</div><div class="line">        <span class="comment">/* .enableCompareSwap = */</span> <span class="keyword">true</span>, <span class="comment">/* Upon a compare event, swap the Compare 0 and Compare 1 values. */</span></div><div class="line">        <span class="comment">/* .interruptSources  = */</span> <a class="code" href="group__group__tcpwm__interrupt__sources.html#gaa7435839c36b6a530452725e9ee2226f">CY_TCPWM_INT_NONE</a>,</div><div class="line">        <span class="comment">/* .captureInputMode  = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .captureInput      = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .reloadInputMode   = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .reloadInput       = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .startInputMode    = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .startInput        = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .stopInputMode     = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .stopInput         = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .countInputMode    = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga6f8ffc8c36941d7d44290147032fd33b">CY_TCPWM_INPUT_LEVEL</a>, <span class="comment">/* Set this input to LEVEL and 1 (high logic level) */</span></div><div class="line">        <span class="comment">/* .countInput        = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga7369f85b221bf7c70e1a580daa6a6bef">CY_TCPWM_INPUT_1</a>, <span class="comment">/* So the counter will count input clock periods (Clk_counter, taking into account the clock prescaler) */</span></div><div class="line">    };</div><div class="line"></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__tcpwm__enums.html#gga236beaba02c8a2a1c4eec981501e7270af9807d578257fa9f0d29cd86ef2c71ea">CY_TCPWM_SUCCESS</a> != <a class="code" href="group__group__tcpwm__functions__counter.html#ga6068a06ddc8a07c67bb6df86e920944c">Cy_TCPWM_Counter_Init</a>(TCPWM0, MY_TCPWM_CNT_NUM, &amp;tcpwm_v1_counter_config))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Handle possible errors */</span></div><div class="line">    }</div><div class="line">    <span class="comment">/* Enable the initialized counter */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__counter.html#ga1707e2cc291fe486fbea346157c65bff">Cy_TCPWM_Counter_Enable</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line"></div><div class="line">    <span class="comment">/* Then start the counter */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gaafe86ec440bec9a2c23392f289cc3a8b">Cy_TCPWM_TriggerStart_Single</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div></div><!-- fragment --><p> TCPWM V2 Configuration </p><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is need to initialize</span></div><div class="line"><span class="comment">     * the first (index = 0) counter of the TCPWM0 block</span></div><div class="line"><span class="comment">     * with the below configuration settings</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    <a class="code" href="structcy__stc__tcpwm__counter__config__t.html">cy_stc_tcpwm_counter_config_t</a> tcpwm_v2_counter_config =</div><div class="line">    {</div><div class="line">        <span class="comment">/* .period            = */</span> 99UL, <span class="comment">/* Period of 100 (0-99). Terminal count event when rolls over back to 0. */</span></div><div class="line">        <span class="comment">/* .clockPrescaler    = */</span> <a class="code" href="group__group__tcpwm__counter__clk__prescalers.html#gaefb266045aef34c35384ee6bfe2d5086">CY_TCPWM_COUNTER_PRESCALER_DIVBY_4</a>, <span class="comment">/* Clk_counter = Clk_input / 4 */</span></div><div class="line">        <span class="comment">/* .runMode           = */</span> <a class="code" href="group__group__tcpwm__counter__run__modes.html#ga020c9a67afbd59f6cda9c1469d5270ac">CY_TCPWM_COUNTER_CONTINUOUS</a>, <span class="comment">/* Wrap around at terminal count. */</span></div><div class="line">        <span class="comment">/* .countDirection    = */</span> <a class="code" href="group__group__tcpwm__counter__direction.html#gaad2097cab499746412a80da26d978d3f">CY_TCPWM_COUNTER_COUNT_UP</a>, <span class="comment">/* Up counter, counting from 0 to period value. */</span></div><div class="line">        <span class="comment">/* .compareOrCapture  = */</span> <a class="code" href="group__group__tcpwm__counter__compare__capture.html#gacd6cf6c894bf1bc1550270916166d21c">CY_TCPWM_COUNTER_MODE_COMPARE</a>, <span class="comment">/* Trigger interrupt/event signal when Counter value is equal to Compare 0 */</span></div><div class="line">        <span class="comment">/* .compare0          = */</span> 33UL,</div><div class="line">        <span class="comment">/* .compare1          = */</span> 66UL,</div><div class="line">        <span class="comment">/* .enableCompareSwap = */</span> <span class="keyword">true</span>, <span class="comment">/* Upon a compare event, swap the Compare 0 and Compare 1 values. */</span></div><div class="line">        <span class="comment">/* .interruptSources  = */</span> <a class="code" href="group__group__tcpwm__interrupt__sources.html#gaa7435839c36b6a530452725e9ee2226f">CY_TCPWM_INT_NONE</a>,</div><div class="line">        <span class="comment">/* .captureInputMode  = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .captureInput      = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .reloadInputMode   = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .reloadInput       = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .startInputMode    = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .startInput        = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .stopInputMode     = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .stopInput         = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .countInputMode    = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga6f8ffc8c36941d7d44290147032fd33b">CY_TCPWM_INPUT_LEVEL</a>, <span class="comment">/* Set this input to LEVEL and 1 (high logic level) */</span></div><div class="line">        <span class="comment">/* .countInput        = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga7369f85b221bf7c70e1a580daa6a6bef">CY_TCPWM_INPUT_1</a>, <span class="comment">/* So the counter will count input clock periods (Clk_counter, taking into account the clock prescaler) */</span></div><div class="line">        <span class="comment">/* .capture1InputMode = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .capture1Input     = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .enableCompare1Swap= */</span> <span class="keyword">false</span>, <span class="comment">/* Disable CC1 */</span></div><div class="line">        <span class="comment">/* .compare2          = */</span> 0,</div><div class="line">        <span class="comment">/* .compare3          = */</span> 0,</div><div class="line">        <span class="comment">/* .trigger0Event     = */</span> <a class="code" href="group__group__tcpwm__output__trigger__modes.html#ga80297cac01044cbf8ea2af92c902da7e">CY_TCPWM_CNT_TRIGGER_ON_DISABLED</a>, <span class="comment">/* Disable output trigger0 event generation*/</span></div><div class="line">        <span class="comment">/* .trigger1Event     = */</span> <a class="code" href="group__group__tcpwm__output__trigger__modes.html#ga80297cac01044cbf8ea2af92c902da7e">CY_TCPWM_CNT_TRIGGER_ON_DISABLED</a>, <span class="comment">/* Disable output trigger1 event generation*/</span></div><div class="line">    };</div><div class="line"></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__tcpwm__enums.html#gga236beaba02c8a2a1c4eec981501e7270af9807d578257fa9f0d29cd86ef2c71ea">CY_TCPWM_SUCCESS</a> != <a class="code" href="group__group__tcpwm__functions__counter.html#ga6068a06ddc8a07c67bb6df86e920944c">Cy_TCPWM_Counter_Init</a>(TCPWM0, MY_TCPWM_CNT_NUM, &amp;tcpwm_v2_counter_config))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Handle possible errors */</span></div><div class="line">    }</div><div class="line">    <span class="comment">/* Enable the initialized counter */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__counter.html#ga1707e2cc291fe486fbea346157c65bff">Cy_TCPWM_Counter_Enable</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line"></div><div class="line">    <span class="comment">/* Then start the counter */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gaafe86ec440bec9a2c23392f289cc3a8b">Cy_TCPWM_TriggerStart_Single</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div></div><!-- fragment --> <h2><a class="anchor" id="group_tcpwm_counter_clock"></a>
Assign Clock Divider</h2>
<p>The clock source must be connected to proper working. Any of the peripheral clock dividers could be used. Use the <a class="el" href="group__group__sysclk.html">SysClk (System Clock)</a> driver API to do that.</p>
<h2><a class="anchor" id="group_tcpwm_counter_enable"></a>
Enable Counter</h2>
<p>Counter has to be enabled before starting</p>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: Enable Counter */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_COUNTER_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#ga802ebf3a49b1056e4bc5b057deb26e49">Cy_TCPWM_PWM_Enable</a>(TCPWM0, MY_TCPWM_COUNTER_NUM);</div></div><!-- fragment --> <h2><a class="anchor" id="group_tcpwm_counter_start"></a>
Start Counter</h2>
<p>Counter has to be started</p>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: Use software trigger to start counter operation */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_COUNTER_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gaafe86ec440bec9a2c23392f289cc3a8b">Cy_TCPWM_TriggerStart_Single</a>(TCPWM0, MY_TCPWM_COUNTER_NUM);</div></div><!-- fragment --><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="groups"></a>
API Reference</h2></td></tr>
<tr class="memitem:group__group__tcpwm__macros__counter"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__macros__counter.html">Macros</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:group__group__tcpwm__functions__counter"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__counter.html">Functions</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:group__group__tcpwm__data__structures__counter"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__data__structures__counter.html">Data Structures</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
